package com.backwaveweibo.bww.config;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.boot.ansi.AnsiColor;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class Runner implements ApplicationRunner {

    @Override
    public void run(ApplicationArguments args) throws Exception {
        AnsiColor brightCyan = AnsiColor.BRIGHT_CYAN;


        String banner = "\n" +
                "\n" +
                "                                                         tt                                                                       ttt.                                                \n" +
                "                         ttt                            ttttt                          ;                                     tttt   t.                                                \n" +
                "                     ttttttttt              1t            tt                  :        ttt                             :ttttttttttttttt.                                              \n" +
                "                 ttttttttttti              tttttt   t:..     :itt            :ttt tttt ttt  tt:                 ttt    :t1ii;tttt. .:ii                                               \n" +
                "             ttttttttttt                      tt:   ttttttttttttt            ttt; tttt ttt  tti                .ttt.    tttttttttttttt                                                \n" +
                "             tttt                                   tttt      ttt          tttt   tttttttttttti ttt            .ttt     ttt  tttt  1tt                                                \n" +
                "             tttt tttttttttttttttt        tttt.     ttttttttttttt         it.  :               .ttt            .ttt.    tttttttttttttt                                                \n" +
                "            .tttt tttttttttttttttt        :ttttt    ttt.      ttt             .tttttttttttttt  tttt;:. :    .ttttttttt  tttttttttttttt                                                \n" +
                "            ittt1                             :     ttttttttttttt            ttt    .         .ttttttttt        ttt.    ttt  .tttttttt                                                \n" +
                "            tttt    .....::::::;;                   tttt         tti       ttt     tttttttt:  ttt  ttt          ttt     ttt  ittt  itt                                                \n" +
                "            tttt    ttttttttttttt             tttt  tttt  .tt. ;tttt      t  .ttt  tttttttt; 1. t  ttt          ttt             tttt  i.                                              \n" +
                "            ttt    .tttt: ...tttt           ttttt   tttt   tttttttt           ttt  ttt   tt;    ttttt           ttt   tttttttttttttttttt                                              \n" +
                "           tttt    .tttt     tttt          ttttt    tttt     ttttttt          ttt  ttt   ttt 1t  ttttt          ttt      t      ;ttt                                                  \n" +
                "           ttt     .tttt     tttt        itttt.     tttt t:   .ttttttttt.     ttt  tt     tttt  ttttttttttt     ttt.     tttt   ittt                                                  \n" +
                "          ;tt       ttttttttttttt        tttt       tttttt.      ttttttt     :ttt. t           tt     tttt      ttt.       t   .tttt                                                  \n" +
                "          t         ttttttttttttt                   ttt              tt                                         ttt              ttt                                                  \n" +
                "                                                                                                                                       ";
        System.out.println(banner);


        log.info("后浪微博启动完毕");
    }
}
